package com.dd.cloud.user.entity.phar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 省市区对应的药房
 * </p>
 *
 * @author czg
 * @since 2020-03-21
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "省市区对应的药房")
public class PharmacyRelatedProvince implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 数据表说明:省市区对应的药房
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true,isAutoIncrement = true)
    private Integer id;

    /**
     * 药房名字
     */
    @Column(comment = "药房id")
    private Integer pharId;

    /**
     * 省
     */
    @Column(length = 20, comment = "省")
    private String province;

    /**
     * 市
     */
    @Column(length = 20, comment = "市")
    private String city;

    /**
     * 区
     */
    @Column(length = 30, comment = "县市区")
    private String district;

    /**
     * 创建时间
     */
    @Column( comment = "创建时间", defaultValue = "now()")
    private LocalDateTime createDate;

}
